import request from '@/utils/request'

// 创建客服记录
export function createSeekCustomer(data) {
    return request({
        url: '/car/seek-customer/create',
        method: 'post',
        data: data
    })
}

// 更新客服记录
export function updateSeekCustomer(data) {
    return request({
        url: '/car/seek-customer/update',
        method: 'put',
        data: data
    })
}

// 删除客服记录
export function deleteSeekCustomer(id) {
    return request({
        url: '/car/seek-customer/delete?id=' + id,
        method: 'delete'
    })
}

// 获得客服记录
export function getSeekCustomer(id) {
    return request({
        url: '/car/seek-customer/get?id=' + id,
        method: 'get'
    })
}

// 获得客服记录分页
export function getSeekCustomerPage(query) {
    return request({
        url: '/car/seek-customer/page',
        method: 'get',
        params: query
    })
}

// 导出客服记录 Excel
export function exportSeekCustomerExcel(query) {
    return request({
        url: '/car/seek-customer/export-excel',
        method: 'get',
        params: query,
        responseType: 'blob'
    })
}
